/**
 * 设备管理路由
 */
export default [
  {
    path: '/equipment',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'ledger',
        name: 'EquipmentLedger',
        component: () => import('@/views/equipment/EquipmentLedger.vue'),
        meta: { title: '设备台账' }
      },
      {
        path: 'create',
        name: 'EquipmentCreate',
        component: () => import('@/views/equipment/EquipmentForm.vue'),
        meta: { title: '新增设备' }
      },
      {
        path: 'edit/:id',
        name: 'EquipmentEdit',
        component: () => import('@/views/equipment/EquipmentForm.vue'),
        meta: { title: '编辑设备' }
      },
      {
        path: 'detail/:id',
        name: 'EquipmentDetail',
        component: () => import('@/views/equipment/EquipmentDetail.vue'),
        meta: { title: '设备详情' }
      },
      {
        path: 'inspection',
        name: 'EquipmentInspection',
        component: () => import('@/views/equipment/EquipmentInspection.vue'),
        meta: { title: '设备巡检' }
      },
      {
        path: 'spot-check',
        name: 'EquipmentSpotCheck',
        component: () => import('@/views/equipment/EquipmentSpotCheck.vue'),
        meta: { title: '设备点检' }
      },
      {
        path: 'maintenance',
        name: 'EquipmentMaintenance',
        component: () => import('@/views/equipment/EquipmentMaintenance.vue'),
        meta: { title: '维保计划' }
      },
      {
        path: 'repair',
        name: 'EquipmentRepair',
        component: () => import('@/views/equipment/EquipmentRepair.vue'),
        meta: { title: '故障维修' }
      },
      {
        path: 'spare-parts',
        name: 'EquipmentSpareParts',
        component: () => import('@/views/equipment/EquipmentSpareParts.vue'),
        meta: { title: '备件库存' }
      },
      {
        path: 'oee',
        name: 'EquipmentOEE',
        component: () => import('@/views/equipment/EquipmentOEE.vue'),
        meta: { title: '设备效率(OEE)' }
      },
      {
        path: 'statistics',
        name: 'EquipmentStatistics',
        component: () => import('@/views/equipment/EquipmentStatistics.vue'),
        meta: { title: '设备统计' }
      }
    ]
  }
]

